package cn.gok.code.service.Impl;

import cn.gok.code.entity.Student;
import cn.gok.code.mapper.StudentMapper;
import cn.gok.code.service.MyBaseService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * @ClassName StudentService
 * @Description TODO
 * @Author HP
 * @Date 19:36 2022/7/21
 * @Version 1.0
 **/
@Service
public class StudentService extends MyBaseService<Student, StudentMapper> {
    @Autowired
    private StudentMapper mapper;
//3）	模糊查询学生信息
    public List<Student> selLike(String sname){
        QueryWrapper<Student> wrapper=new QueryWrapper<>();
        wrapper.like("sname",sname);
        List<Student> list=mapper.selectList(wrapper);
        return list;
    }
//4）	分页查询学生信息


}
